package com.cizzy.favorite.entity;

import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;
import java.sql.Timestamp;
import java.time.LocalDateTime;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>
 *
 * </p>
 *
 * @author crissy-月下闲人
 * @since 2023-11-03
 */
@Data
@NoArgsConstructor
@ApiModel(value = "Collect对象", description = "")
public class Collect implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId("collect_id")
    private Long collectId;

    private Timestamp createAt = new Timestamp(System.currentTimeMillis());

    private Long userId;

    private Long videoId;

    public Collect(Long userId, Long videoId) {
        this.userId = userId;
        this.videoId = videoId;
        this.createAt = new Timestamp(System.currentTimeMillis());
    }
}
